﻿using System;
using System.Collections.Generic;
using System.Text;

namespace HZ.DrugTrade.Model
{
    /// <summary>
    /// 医疗机构采购目录
    /// </summary>
    [Serializable]
    [HZ.Table(TableName = "TB_HOSPITALPROCURECATALOG")]
    public class HospitalProcureCatalog
    {
        /// <summary>
        /// 医疗机构编号
        /// </summary>
        [HZ.Column(PrimaryKey = true)]
        public string HospitalID { get; set; }
        /// <summary>
        /// 采购目录编号
        /// </summary>
        [HZ.Column(PrimaryKey = true)]
        public string ProcureCatalogID { get; set; }
        /// <summary>
        /// 当前的配送企业
        /// </summary>
        public string CompanyID_PS { get; set; }
        /// <summary>
        /// 当前配送企业名称
        /// </summary>
        public string CompanyName_PS{ get;  set;} 
        /// <summary>
        /// 上次的配送企业
        /// </summary>
        public string CompanyID_Last { get; set; }
        /// <summary>
        /// 招标完成后首次签订协议的企业
        /// </summary>
        public string CompanyID_Main { get; set; }
        /// <summary>
        /// 是否启用（0否;1是）
        /// </summary>
        public bool? IsUsing { get; set; }
        /// <summary>
        /// 医疗机构实际采购价
        /// </summary>
        public decimal? Price { get; set; }
        /// <summary>
        /// 医疗机构销售价
        /// </summary>
        public decimal? SellPrice { get; set; }
        /// <summary>
        /// 库存(入库总量)
        /// </summary>
        public int? Stock { get; set; }

        /// <summary>
        /// 设置采购价的原因  add by ysm 20130130
        /// </summary>
        public string PriceReson { get; set; }

        /// <summary>
        /// 设置采购价的用户名  add by ysm 20130130
        /// </summary>
        public string PriceSetUserID { get; set; }

        /// <summary>
        /// 设置采购价的用户名称  add by ysm 20130130
        /// </summary>
        public string PriceSetUserName { get; set; }

        /// <summary>
        /// 设置采购价的时间  add by ysm 20130130
        /// </summary>
        public DateTime? PriceSetTime { get; set; }
        /// <summary>
        /// 医疗机构名称
        /// </summary>
        public string HospitalName { get; set; }
    }
}